package com.scpii.api.common.auth;

import java.util.Arrays;
import java.util.Set;
import java.util.TreeSet;

public class AuthUtils {
	public static Set<String> parseParameterList(String values) {
		Set<String> result = new TreeSet<String>();
		if (values != null && values.trim().length() > 0) {
			String[] tokens = values.split("[\\s+,]");
			result.addAll(Arrays.asList(tokens));
		}
		return result;
	}
}
